package com.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gulimall.common.utils.PageUtils;
import com.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性&属性分组关联
 *
 * @author lubin
 * @email lubinyx@163.com
 * @date 2021-11-02 15:15:24
 */
public interface AttrAttrgroupRelationService extends IService<AttrAttrgroupRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    AttrAttrgroupRelationEntity getByAttrId(Long attrId);

    List<AttrEntity> getRelaotionAttrs(Long attrgroupId);

    void deleteRelations(List<AttrAttrgroupRelationEntity> relationEntities);
}

